package com.dasberg.gwt.client;

import java.io.Serializable;
import java.util.List;

/**
 * Authentication token that is put in the HttpSession for authentication purposes.
 * @author mischa
 */
public class AuthenticationToken implements Serializable {
    private String id;
    private String username;
    private String displayname;

    /**
     * Constructor.
     * @param id The id.
     * @param username The username.
     * @param displayname The displayname.
     */
    public AuthenticationToken(String id, String username, String displayname) {
        this.id = id;
        this.username = username;
        this.displayname = displayname;
    }

    /**
     * Gets the id.
     * @return id The id.
     */
    public String getId() {
        return id;
    }

    /**
     * Gets the username.
     * @return username The username.
     */
    public String getUsername() {
        return username;
    }

    /**
     * Gets the displayname.
     * @return displayname The displayname.
     */
    public String getDisplayname() {
        return displayname;
    }
}
